const store = new Vuex.Store ({
  state: {
    companyInfo: {},
  },
  mutations: {
    saveCompanyInfo (state, payload) {
      state.companyInfo = payload;
      console.log(state.companyInfo);
    },
  },
  actions: {
    increment (context, payload) {
      setTimeout (() => {
        context.commit ('increment', payload);
      }, 2000);
    },
  },
  getters: {
    msg (state) {
      return state.msg.toUpperCase ();
    },
    count (state) {
      return state.count;
    },
  },
});
